<div id="purchase">
    <div class="nav">
        <div class="nav-li focus">采购登记</div>
        <a href="#admin/purchaselist">
            <div class="nav-li">采购列表</div>
        </a>
        <a href="#admin/purchasestock">
            <div class="nav-li">采购库存</div>
        </a>
        <a href="#admin/conversion">
            <div class="nav-li">转化成品</div>
        </a>
        <a href="#admin/stock">
            <div class="nav-li">库存记录</div>
        </a>
    </div>
    <hr />
    <div class="purchase">
        <div>
            <input type="text" class="theme" placeholder="请填写采购单主题" />
        </div>
        <table>
            <thead>
                <td></td>
                <td>厂商</td>
                <td>品名</td>
                <td>数量</td>
                <td>单位</td>
                <td>单价</td>
            </thead>
            <tr>
                <td>
                    <a title="删除此行" class="icon-remove2"></a>
                    <a title="新增一行" class="icon-plus"></a>
                </td>
                <td class="input">
                    <input type="text" placeholder="购买厂商" />
                </td>
                <td class="input">
					{{#> "select-model"}}
                    <!-- <input type="text" placeholder="商品名称" /> -->
                </td>
                <td class="input">
                    <input type="text" placeholder="购买数量" />
                </td>
                <td class="input">
                    <input type="text" placeholder="商品单位" />
                </td>
                <td class="input">
                    <input type="text" placeholder="商品单价" />
                </td>
            </tr>
            <tr>
            	<td class="title">
            		备注
            	</td>
            	<td colspan="5" class="input">
            		<input class="wid" type="text" placeholder="备注信息" />
            	</td>
            </tr>
            <tr>
            	<td class="title">总计金额</td>
            	<td>5000</td>
            	<td class="title">采购日期</td>
            	<td class="input" colspan="3">
            		<input type="date" placeholder="YYYY/MM/DD" />
            	</td>
            </tr>
        </table>
    </div>
</div>
<!-- 下拉框模块 -->
<xmp type="template" name="select-model">
    <div class="select-model {{$Cache.purchase.open_select_material&&'focus'}}">
    	<input class="material_input" event-focus="{{'$Event.purchase.open_select_material'}}" event-blur="{{'$Event.purchase.open_select_material'}}" placeholder="商品名称" />
    	<div class="inbox">
	        <div class="add" event-click="{{'$Event.purchase.open_add_material'}}">{{ $Cache.purchase.is_add_material?"取消":"新增"}}</div>
	        <div class="material_list">
		        {{#if $Cache.purchase.material_list.length}}
		        {{#each $Cache.purchase.material_list}}
				<div class="item">金疮药</div>
				{{/each}}
		        {{#else}}
				<div class="item">暂无商品</div>
		        {{/if}}
	        </div>
    	</div>
    </div>
</xmp>
